package lab03.test03;

import java.io.*;

public class Test03 {
    public static void main(String[] args) throws IOException {
        File file  = new File("G:\\test.txt");

        OutputStream outputStream = null;
        outputStream = new FileOutputStream(file);

        String  string = "Beijing欢迎你！";

        byte []b = string.getBytes();
        outputStream.write(b);
        outputStream.close();
    }
}

